package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Article entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tarticle"
    ,catalog="studio"
)

public class Article  implements java.io.Serializable {


    // Fields    

     private Integer articleid;
     private Integer memberid;
     private String isstudio;
     private Integer categoryid;
     private String title;
     private String summary;
     private String createdate;
     private String updatedate;


    // Constructors

    /** default constructor */
    public Article() {
    }

	/** minimal constructor */
    public Article(Integer memberid, String isstudio, String title, String createdate) {
        this.memberid = memberid;
        this.isstudio = isstudio;
        this.title = title;
        this.createdate = createdate;
    }
    
    /** full constructor */
    public Article(Integer memberid, String isstudio, Integer categoryid, String title, String summary, String createdate, String updatedate) {
        this.memberid = memberid;
        this.isstudio = isstudio;
        this.categoryid = categoryid;
        this.title = title;
        this.summary = summary;
        this.createdate = createdate;
        this.updatedate = updatedate;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="ARTICLEID", unique=true, nullable=false)

    public Integer getArticleid() {
        return this.articleid;
    }
    
    public void setArticleid(Integer articleid) {
        this.articleid = articleid;
    }
    
    @Column(name="MEMBERID", nullable=false)

    public Integer getMemberid() {
        return this.memberid;
    }
    
    public void setMemberid(Integer memberid) {
        this.memberid = memberid;
    }
    
    @Column(name="ISSTUDIO", nullable=false, length=1)

    public String getIsstudio() {
        return this.isstudio;
    }
    
    public void setIsstudio(String isstudio) {
        this.isstudio = isstudio;
    }
    
    @Column(name="CATEGORYID")

    public Integer getCategoryid() {
        return this.categoryid;
    }
    
    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }
    
    @Column(name="TITLE", nullable=false, length=100)

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    @Column(name="SUMMARY")

    public String getSummary() {
        return this.summary;
    }
    
    public void setSummary(String summary) {
        this.summary = summary;
    }
    
    @Column(name="CREATEDATE", nullable=false, length=1)

    public String getCreatedate() {
        return this.createdate;
    }
    
    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }
    
    @Column(name="UPDATEDATE", length=14)

    public String getUpdatedate() {
        return this.updatedate;
    }
    
    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }
   








}